package com.boarsoft.boar.batch.entity;

import java.io.Serializable;

public class BatchLock implements Serializable {

	private static final long serialVersionUID = -115011887999778922L;
	
	/** 状态停用 */
	public static final short STATUS_DISABLE = 0;
	/** 状态启用 */
	public static final short STATUS_ENABLE = 1;
	
	/** 批量集群锁编号*/
	private String code;
	/** 最近获取到锁的批量实例*/
	private String addr;
	/** 版本号*/
	private long version;
	/** 状态*/
	private short status;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(short status) {
		this.status = status;
	}
}
